<template>
    <i-frame :src="url" />
</template>
<script>
  import iFrame from "@/components/iFrame/index";
  import {getUrl,} from '@/api/data/qike';

  export default {
    name: "Home",
    components: { iFrame },
    data() {
      return {
        url: ""
      };
    },
    created() {
      this.getUrl()
    },
    methods: {
      getUrl() {
        getUrl(this.$route.query.moduleName).then(response => {
          this.url = response.data.url;
        });
      }
    }
  };
  </script>
  